From 7c7e75435c3968c10b836d18cd23f5ca877fdd69 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Mon, 10 Oct 2016 19:49:33 +0300 Subject: [PATCH] Update g_docs.go --- g_docs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/g_docs.go b/g_docs.go index a0ae1f6..6f78329 100644 --- a/g_docs.go +++ b/g_docs.go @@ -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")