Open lelongg opened 5 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Vec
should be used for binary string instead of swagger::ByteArray.
@lelongg that sounds reasonable. Can you please file a PR with the suggested fix?
The rust-server code generator handles binary and byte string format the same way. Both are base64 encoded automatically while binary strings should not perform this transformation as stated in OAS3.2.
Description
openapi-generator version
Tested with docker image
openapitools/openapi-generator-cli
with version 4.0.1-SNAPSHOT.OpenAPI declaration file content or url
Command line used for generation
Related issues/PRs
Issue #538 mentions binary and byte string but doesn't mention how they should be handled differently.
Suggest a fix
Vec<u8>
should be used for binary string instead ofswagger::ByteArray.