Skip to content

Support generating models with interfaces instead of concrete types #24

@petrsvihlik

Description

@petrsvihlik

Motivation

In strongly typed models, this is supported:

IEnumerable<MyType> CollectionOfMyTypes { get; set; }

and this is not:

IEnumerable<IMyType> CollectionOfMyInterfaces { get; set; }

This applies both to externally defined types and types defined within the SDK (Asset, TaxonomyTerm).

We should give developers the freedom to unwind from specific classes and work with KC data through interfaces. For example, defining shadow properties wouldn't be necessary anymore.

Design guidelines

The generator should be updated to generate models with interfaces as generic parameters of collections. See the issue above.

Reference

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions