Encountering an issue with NSwag in my Angular project where it throws an error when attempting to send data if the object contains a nested array of objects like this:
export interface IJobAdDto {
mainJobAd: JobAddDetailsDto;
differentLanguageJobAds: JobAddDetailsDto[] | undefined;}
https://i.stack.imgur.com/lxqLw.png
However, if I "cast it" to a new object of the correct type, it works as expected: https://i.stack.imgur.com/mI8Vt.png
The question is, how can I modify NSwag to implement this change automatically, or how can I extend the method/class to prevent it from being overwritten each time it's generated?
I have used NSwag (version 13.9.4.0) to generate the client code.