This commit is contained in:
Guo 2021-02-09 12:30:00 -06:00 committed by GitHub
commit b91b190b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1193,6 +1193,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
}
if ignore := stag.Get("ignore"); ignore != "" {