forked from loafle/openapi-generator-original
fix: Don't spread strings, instead "||" them together (#18185)
This commit is contained in:
committed by
GitHub
parent
c15e267e22
commit
6a1791c8c3
@@ -31,7 +31,7 @@ export function {{classname}}FromJSONTyped(json: any, ignoreDiscriminator: boole
|
||||
}
|
||||
{{/discriminator}}
|
||||
{{^discriminator}}
|
||||
return Object.assign({}, {{#oneOf}}{{{.}}}FromJSONTyped(json, true){{^-last}}, {{/-last}}{{/oneOf}});
|
||||
return {{#oneOf}}{{{.}}}FromJSONTyped(json, true){{^-last}} || {{/-last}}{{/oneOf}};
|
||||
{{/discriminator}}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user