Closed yurisasuke closed 4 months ago
Indeed, the definition of []byte
was wrong. The behavior of enconding/json
for []byte
is base64 string, this behavior was applied to schema in v0.2.52
.
Please feel free to reopen if current behavior still needs adjustment.
Describe the bug If you have []bytes as one of your field in the OAS it is represented as an array
At the moment as a work arounf I am using PrepareJSONSchema to change the generated output.
Sample struct
What is produced in the OAS:
Expected behavior I would expect it to have produced a string with binary format like below: