How do I write a swagger endpoint where I can delay the consumption of the body in its parameters? #2709
Answered
by
casualjim
seang-godaddy
asked this question in
Q&A
-
I need to define a swagger endpoint that needs to take in media types text and zip. Instead of having the generated package consume it and reassign it into separate types such as string, can I get the io.Readcloser passed through directly? |
Beta Was this translation helpful? Give feedback.
Answered by
casualjim
Feb 10, 2022
Replies: 1 comment
-
You will get a stream, when you define the parameter as type: string
format: binary |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
seang-godaddy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You will get a stream, when you define the parameter as