Skip to content

Conversation

jviau
Copy link
Collaborator

@jviau jviau commented Sep 8, 2025

Issue describing the changes in this PR

resolves #2911

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Addresses an issue with CosmosDB extension where users could not customize JSON serialization when binding directly to a POCO.

Issue:

CosmosDBConverter was not consuming any user-provided JSON serialization customization. This was a regression from #1924.

Fix:

  1. Add a new option to CosmosDBExtensionOptions to provide a ObjectSerializer, defaulting to WorkerOptions.Serializer if no serializer is explicitly set.
  2. Update CosmosDBConverter to use this new serializer when deserializing POCOs

Concerns / Discussion:

This is a fix for a regression introduced back in December 2023. But it COULD be seen as a new breaking behavior change for some customers. This poses some risk for this change.

@jviau jviau force-pushed the jviau/cosmos-serializer branch from dd50e62 to 0aaa0fd Compare September 29, 2025 22:08
@jviau jviau force-pushed the jviau/cosmos-serializer branch from 0aaa0fd to 1708190 Compare September 29, 2025 22:08
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.

Unable to override the JsonSerializer when using ConfigureFunctionsWebApplication for CosmoDb Input bindings

3 participants