forked from mirror/Riven
1
0
Fork 0

Fix srcgen Optional<String> method argument bug

v/1.x.x
Mingwei Samuel 2020-07-10 01:56:11 -07:00
parent 02056f1e59
commit e4884b7918
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function stringifyType(prop, { endpoint = null, optional = false, fullpath = tru
prop = prop.anyOf[0]; prop = prop.anyOf[0];
} }
if (optional) { if (optional) {
return `Option<${stringifyType(prop, { endpoint, fullpath })}>`; return `Option<${stringifyType(prop, { endpoint, fullpath, owned })}>`;
} }
let enumType = prop['x-enum']; let enumType = prop['x-enum'];