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

Generate Generic type as parameter with <> instead of [ ]

Open giancarlogamarra opened this issue 6 years ago • 1 comments

If my method on the server is using Generics then it is generated like this, which is great only for the '[' character it should be <> //wrong export interface Field [ HeaderField ] { Name?: string; Field?: __model.HeaderField; } //fine export interface Field < HeaderField > { Name?: string; Field?: __model.HeaderField; } it would be great to have this tiny change.

Best regards

giancarlogamarra avatar Jul 06 '19 03:07 giancarlogamarra

Please, add a definition json example, so it's clear what leads to this, and also feel welcome to make a PR.

jnwltr avatar Nov 15 '19 14:11 jnwltr