1
0
镜像自地址 https://github.com/beego/bee.git 已同步 2025-09-13 01:12:09 +00:00

Do no omit response description

[swagger specs](https://swagger.io/docs/specification/describing-responses/) requires each response to have a description. Otherwise, ignorable error will be generated. This PR makes sure that description field is not omitted in the event that user did not give a description.
这个提交包含在:
Liu Siyuan
2017-08-03 17:32:46 +08:00
提交者 GitHub
父节点 aae0cc4587
当前提交 0a42575490

查看文件

@@ -141,7 +141,7 @@ type Propertie struct {
// Response as they are returned from executing this operation.
type Response struct {
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Description string `json:"description" yaml:"description"`
Schema *Schema `json:"schema,omitempty" yaml:"schema,omitempty"`
Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"`
}