mirror of
https://github.com/beego/bee.git
synced 2025-05-13 02:51:25 +00:00
Merge 95009c02ba03b9364901a33a83a3e28c540172df into ebb8c0ad314011386cc76bfb4cc6bd58c8f5392a
This commit is contained in:
commit
3f7b5dc74b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user