mirror of https://github.com/beego/bee.git
Merge 95009c02ba
into cbb523325d
This commit is contained in:
commit
b91b190b80
|
@ -1193,6 +1193,10 @@ func parseStruct(imports []*ast.ImportSpec, st *ast.StructType, k string, m *swa
|
|||
mp.Example = str2RealType(example, realType)
|
||||
}
|
||||
|
||||
if len(tagValues) == 2 && tagValues[1] == "string" {
|
||||
mp.Type = "string"
|
||||
}
|
||||
|
||||
m.Properties[name] = mp
|
||||
}
|
||||
if ignore := stag.Get("ignore"); ignore != "" {
|
||||
|
|
Loading…
Reference in New Issue