Fix srcgen Optional<String> method argument bug

pull/16/head
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];
}
if (optional) {
return `Option<${stringifyType(prop, { endpoint, fullpath })}>`;
return `Option<${stringifyType(prop, { endpoint, fullpath, owned })}>`;
}
let enumType = prop['x-enum'];