mirror of
https://github.com/beego/bee.git
synced 2025-06-30 00:20:19 +00:00
Merge 95009c02ba
into 01d3971619
This commit is contained in:
@ -1213,6 +1213,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
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user