You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
The text was updated successfully, but these errors were encountered: