1
0
mirror of https://github.com/beego/bee.git synced 2025-05-11 14:41:25 +00:00

Merge 95009c02ba03b9364901a33a83a3e28c540172df into 01d3971619339ca0072055b56d5ab2c66a1580bb

This commit is contained in:
Guo 2023-09-15 05:28:54 +08:00 committed by GitHub
commit 18d589c4b7
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)
}
if len(tagValues) == 2 && tagValues[1] == "string" {
mp.Type = "string"
}
m.Properties[name] = mp
}
} else {