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

Full support for System.Text.Json #402

Open
qpooqp opened this issue Jan 31, 2025 · 0 comments
Open

Full support for System.Text.Json #402

qpooqp opened this issue Jan 31, 2025 · 0 comments

Comments

@qpooqp
Copy link

qpooqp commented Jan 31, 2025

Motivation

In our solution we have need for serialization and deserialization of the models received from delivery client.
The models are generated by model generator.
The models have properties with interface types and the implementation of the interfaces are hidden from us because they are internal to the delivery client library. This causes problem when we want to deserialize them because System.Text.Json can't deserialize to interface without any concrete implementation.

An example can be interface Kontent.Ai.Delivery.Abstractions.IDateTimeContent.

Proposed solution

Expose implementations for the interfaces used in models generated by model generator.

Additional context

I hope that it is understandable what is going on here, but if not, then let me know and i will provide you with some example project.

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

No branches or pull requests

1 participant