Skip to content

[JAVA] type=string format=byte not serialised correctly in header #9412

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

Open
UKreher opened this issue Apr 30, 2019 · 0 comments
Open

[JAVA] type=string format=byte not serialised correctly in header #9412

UKreher opened this issue Apr 30, 2019 · 0 comments

Comments

@UKreher
Copy link

UKreher commented Apr 30, 2019

Description

I have a byte[] (type=string format=byte) as header parameter. For creating (the header of) the request for calling the operation ApiClient.parameterToString(Object) will be used. While this uses JSON for handling date types, it uses Object.toString() for all other types including byte[]. With the changes of #4824 the byte[] should be serialised properly when delegating to JSON instead of calling Object.toString().

Swagger-codegen version

swagger-codegen-cli-3.0.8

Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs

#4824

Suggest a fix/enhancement

Apply the special treatment of byte[] introduced with #4824 also to ApiClient.parameterToString(Object). And fix this in all relevant files of the template ApiClient.mustache (see #9411).

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

No branches or pull requests

1 participant