-
Notifications
You must be signed in to change notification settings - Fork 494
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
SystemTextJsonSerializer: Adds UseSystemTextJsonSerializerWithOptions
in CosmosClientOptions
to Set the Default STJ Serializer
#4589
SystemTextJsonSerializer: Adds UseSystemTextJsonSerializerWithOptions
in CosmosClientOptions
to Set the Default STJ Serializer
#4589
Conversation
Microsoft.Azure.Cosmos/src/Serializer/CosmosSystemTextJsonSerializer.cs
Outdated
Show resolved
Hide resolved
93a0f9c
Maybe change the title of the PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good. A few suggestions, and agree with the name proposal in @kirankumarkolli's review.
.../tests/Microsoft.Azure.Cosmos.EmulatorTests/Linq/LinqAggregateCustomSerializationBaseline.cs
Show resolved
Hide resolved
...os/tests/Microsoft.Azure.Cosmos.EmulatorTests/LinqTranslationWithCustomSerializerBaseline.cs
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/CosmosClientOptionsUnitTests.cs
Show resolved
Hide resolved
Hooray! 🎆 Looking forward to deleting the copies of that code that I've been littering in my projects ;) |
Any hope this will make 3.43.0? I very much appreciate this PR by the way, I'm looking forward to it! |
SystemTextJsonSerializerOptions
to Set the Default STJ SerializerUseSystemTextJsonSerializerWithOptions
to Set the Default STJ Serializer
UseSystemTextJsonSerializerWithOptions
to Set the Default STJ SerializerUseSystemTextJsonSerializerWithOptions
to Set the Default STJ Serializer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"
Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.
UseSystemTextJsonSerializerWithOptions
to Set the Default STJ SerializerUseSystemTextJsonSerializerWithOptions
to Set the Default STJ Serializer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"
Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"
Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.
UseSystemTextJsonSerializerWithOptions
to Set the Default STJ SerializerUseSystemTextJsonSerializerWithOptions
in CosmosClientOptions
to Set the Default STJ Serializer
Pull Request Template
Description
This PR refactors Code to Introduce
UseSystemTextJsonSerializerWithOptions
parameter in theCosmosClientOptions
to Set the Default STJ Serializer for bothpreview
andGA
release. To read more about the default serializer, please refer to this PR.Type of change
Please delete options that are not relevant.
Closing issues
To automatically close an issue: closes #IssueNumber