I'm leaning towards thinking a strong type model should be used if documentation is required for response types, i.e. try to use as much of the existing MVC metadata modelling as possible. I especially like the idea that other annotation attributes can be leveraged then; DisplayName etc.
If strong type composition can be achieved by ServiceComposer/ServiceComposer.AspNetCore#155 then great.
Is the intention to support setting a viewmodel dynamic property to a given strong-typed value? Like this:
MyType myObj = new MyType {Name = "Mark"};
vm.MyProp = myObj;
Is it possible to merge lists of strong types too, in cases where a request subscriber wants to add their data to each record?
I'm leaning towards thinking a strong type model should be used if documentation is required for response types, i.e. try to use as much of the existing MVC metadata modelling as possible. I especially like the idea that other annotation attributes can be leveraged then; DisplayName etc.
If strong type composition can be achieved by ServiceComposer/ServiceComposer.AspNetCore#155 then great.
Is the intention to support setting a viewmodel dynamic property to a given strong-typed value? Like this:
Is it possible to merge lists of strong types too, in cases where a request subscriber wants to add their data to each record?