kontent-ai / model-generator-net

Kontent.ai .NET model generator.
https://www.nuget.org/packages/Kontent.Ai.ModelGenerator
MIT License
17 stars 19 forks source link

[RFP] Replace LI's object with interface in delivery models #162

Open Sevitas opened 1 year ago

Sevitas commented 1 year ago

Proposed solution

Replace LI's IEnumerable<object> with IEnumerable<IContentItem> for delivery models. Causing a breaking change for delivery models.

Additional context

Be aware that this will intorduce a breaking change. IContentItem will be created in #90. Blocked by #90.

Sevitas commented 1 year ago

Interface IContentItem was created as part of Delivery.Abstractions https://github.com/kontent-ai/delivery-sdk-net/issues/368. Support for generating models implementing IContentItem interface and replacing object of modular content elements with IContentItem will be done as part of #90 using the structuredModel option.