swagger-ts-generator icon indicating copy to clipboard operation
swagger-ts-generator copied to clipboard

Array of Array

Open thorgod opened this issue 7 years ago • 3 comments

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&lt;Test&gt;>(this, 'InErrors', values.InErrors);
            this.fillModelArray<Array&lt;Test&gt;>(this, 'Good', values.Good);
            this.fillModelArray<Array&lt;Test&gt;>(this, 'InWarnings', values.InWarnings);
        }
    }

thorgod avatar Feb 06 '18 20:02 thorgod

Hi @thorgod, can you create a PR for this? I have very limited time o look into this at the moment

areijngoudt avatar Feb 07 '18 07:02 areijngoudt

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.

thorgod avatar Feb 09 '18 02:02 thorgod

what was your workaround? Have the same issue, where types are generated with encoded strings, e.g. < becomes &lt;

jonaskirkemyr avatar Oct 16 '20 10:10 jonaskirkemyr