diff --git a/srcgen/dotUtils.js b/srcgen/dotUtils.js index 5902ca6..2fa621e 100644 --- a/srcgen/dotUtils.js +++ b/srcgen/dotUtils.js @@ -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'];