From e4884b79187dcd1760b68c3c471940dab89b1c7c Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Fri, 10 Jul 2020 01:56:11 -0700 Subject: [PATCH] Fix srcgen Optional method argument bug --- srcgen/dotUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'];