Update g_docs.go

This commit is contained in:
Konstantin 2016-10-10 19:49:33 +03:00 committed by GitHub
parent e8f85a57c2
commit 7c7e75435c
1 changed files with 2 additions and 0 deletions

View File

@ -769,6 +769,8 @@ func parseObject(d *ast.Object, k string, m *swagger.Schema, realTypes *[]string
}
var tagValues []string
var err error
stag := reflect.StructTag(strings.Trim(field.Tag.Value, "`"))
defaultValue := stag.Get("doc")