forked from mirror/Riven
Fix srcgen Optional<String> method argument bug
parent
02056f1e59
commit
e4884b7918
|
@ -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'];
|
||||||
|
|
Loading…
Reference in New Issue