Skip to content

[question] Is there a way to return user defined schema type as "file" #99

Description

@aryanicosa

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",
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions