This commit is contained in:
Guo 2021-06-29 05:27:52 -04:00 committed by GitHub
commit f1f7ae4b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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