Skip to content

Strong types vs metadata model #2

@markphillips100

Description

@markphillips100

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Under investigation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions