This commit is contained in:
Guo 2024-04-09 19:37:36 +08:00 committed by GitHub
commit df4b0e622b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

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 {