Skip to content

Replace JsonSerializer with IJsonModel #5335

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

Closed
wants to merge 19 commits into from
Closed

Conversation

live1206
Copy link
Member

resolves #5330

@live1206 live1206 marked this pull request as ready for review June 13, 2025 09:42
@@ -32,7 +32,7 @@ private class WriteObjectValueTemplate<T> { }
private readonly MethodSignatureModifiers _methodModifiers = MethodSignatureModifiers.Public | MethodSignatureModifiers.Static | MethodSignatureModifiers.Extension;
private readonly TypeFormattersProvider _typeFormattersProvider;

public ModelSerializationExtensionsProvider() : base(Configuration.HelperNamespace, null)
public ModelSerializationExtensionsProvider() : base(Configuration.Namespace, null)
Copy link
Member Author

@live1206 live1206 Jun 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have an assumption that, the namespace of ModelSerializationExtensions and the Context class share the same namespace.
But for some services, they have different namespaces. Such as ModelSerializationExtensions and AzureMapsTimeZonesContext.
Since ModelSerializationExtensions.cs is internal, it should be fine to adjust its namespace to be consistent with Context.

@live1206 live1206 closed this Jul 16, 2025
@live1206 live1206 deleted the json-model branch July 16, 2025 04:43
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

Successfully merging this pull request may close these issues.

Need to update calls to JsonSerializer when dealing with an IJsonModel
1 participant