swagger-ts-generator
swagger-ts-generator copied to clipboard
Array of Array
C# object looks like this.
IEnumerable<IGrouping<string,Test>>
Everything looks good but the when generating to TS it is adding a < and > I am trying to find out how to fix it, but maybe you might have a quick idea.
setValues(values: any): void {
if (values) {
this.size = values.size;
this.filePath = values.filePath;
this.fillModelArray<Array<Test>>(this, 'InErrors', values.InErrors);
this.fillModelArray<Array<Test>>(this, 'Good', values.Good);
this.fillModelArray<Array<Test>>(this, 'InWarnings', values.InWarnings);
}
}
Hi @thorgod, can you create a PR for this? I have very limited time o look into this at the moment
I will see if I can figure out how to find a fix, and submit a PR. This is low on my list because I found a work around.
what was your workaround? Have the same issue, where types are generated with encoded strings, e.g. <
becomes <