Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generating models with interfaces instead of concrete types #24

Open
petrsvihlik opened this issue Jul 17, 2017 · 2 comments
Open

Comments

@petrsvihlik
Copy link
Contributor

petrsvihlik commented Jul 17, 2017

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

@GopinathRakkiyannan
Copy link

@petrsvihlik

Good day, Is this issue still open? If yes, could you please add more context on it.

So it would help us to contribute

@Simply007
Copy link
Contributor

Related to #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants