Open vocko opened 2 years ago
Did you manage to figure out how to solve this?
Did you manage to figure out how to solve this?
Nope. We have decided to switch to interface mode as the class model was giving us too many headaches. But would be still good to resolve this one.
Yep, same here.
I'm not sure whether this is intended or whether it is my setup, but for each type that is a part of an inheritance chain, the member property is class typed not interface typed.
Example:
The Nswag.json settings
generateConstructorInterface
andconvertConstructorInterfaceData
seem to be somehow involved in the conversion process of most of the properties into interface types, however, the inherited types persist to be class typed. And I can't find any documentation what are these switches meant to do or how do they work.Having the class typed member properties causes issues in places where you need to work with plain objects, like redux toolkit library for example.
My nswag.json looks like follows:
Any help will be highly appreciated.