Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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
wing328 merged 2 commits into swagger-api:master from xhh:java-binary-support
Jan 21, 2016
Merged

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

wing328 merged 2 commits into swagger-api:master from xhh:java-binary-support
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
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[]

ole-v-v reacted with thumbs up emoji

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

v2.1.6

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /