You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
To enable the generated client to have the serializers source generated, the tool could generate an <ApiTypeName>JsonSerializerContext class which inherits from JsonSerializerContext and add all the type names with JsonSerializable to the class, so the serializer source generator could kick in and do its job.
This feature can only be added to the standalone tool because source generators cannot interact with each other currently.
Describe the solution you'd like
An <ApiTypeName>JsonSerializerContext class would be generated as well.
Describe alternatives you've considered
Manually write this class by hand which is tedious.
Is your feature request related to a problem? Please describe.
To enable the generated client to have the serializers source generated, the tool could generate an
<ApiTypeName>JsonSerializerContext
class which inherits fromJsonSerializerContext
and add all the type names withJsonSerializable
to the class, so the serializer source generator could kick in and do its job.This feature can only be added to the standalone tool because source generators cannot interact with each other currently.
Describe the solution you'd like
An
<ApiTypeName>JsonSerializerContext
class would be generated as well.Describe alternatives you've considered
Manually write this class by hand which is tedious.
Additional context
More info on it: https://devblogs.microsoft.com/dotnet/try-the-new-system-text-json-source-generator/
The text was updated successfully, but these errors were encountered: