1
0
mirror of https://github.com/beego/bee.git synced 2024-06-02 11:03:27 +00:00
This commit is contained in:
Guo 2022-08-26 06:52:13 +09:00 committed by GitHub
commit 3f7b5dc74b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1213,6 +1213,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 {