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