currently Returns it take code, message interface as parameters.
e.g: Returns(http.StatusOK, http.StatusText(http.StatusOK), "file")
it will produce apispec like this:
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string",
}
}
However, I am trying to fine a way to create api spec like below, because in reality the handler is returning a file to user
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "file",
}
}
currently Returns it take code, message interface as parameters.
e.g: Returns(http.StatusOK, http.StatusText(http.StatusOK), "file")
it will produce apispec like this:
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string",
}
}
However, I am trying to fine a way to create api spec like below, because in reality the handler is returning a file to user
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "file",
}
}