Skip to content

v5.0.1 - Empty Object Serialization Fix

Choose a tag to compare

@mourraille mourraille released this 03 Jul 12:36
· 1 commit to main since this release
7f899be

Python SDK v5.0.1

What's New

🔧 Bug Fix: Empty Object Serialization

  • Fix: Objects with no properties now serialize correctly to {} instead of []
  • Resolves backend validation errors when sending empty optional/nested objects

✨ New Features: Consent Groups Management

  • List consent groups — GET /contacts/consent-groups
  • Create a consent group — POST /contacts/consent-groups
  • Get consent group details — GET /contacts/consent-groups/{id}
  • Update consent group — PUT /contacts/consent-groups/{id} (name, description, signup mode)
  • Delete consent group — DELETE /contacts/consent-groups/{id}

📲 Extended Operations

  • Import contacts — POST /contacts/import now accepts optional consent_group_ids field to add imported contacts to specified consent groups
  • Get contact details — GET /contacts/{identifier} now returns consent_groups array showing subscription status (when feature enabled)

💳 New Wallet Feature

  • Get pass installation URL — GET /wallet/passes/{passId}/installUrl/{contactId}
    • Generates per-contact wallet installation URLs
    • Enables sharing via email, SMS, or QR code for Apple Wallet/Google Wallet integration

Bug Fixes

  • Fixed serialization of empty objects to produce valid JSON objects instead of arrays
  • Resolves backend validation failures from strict type checkers

Compatibility

  • ✅ Backward compatible — no breaking changes
  • ✅ Safe to upgrade from v5.0.0-rc.1

Installation

pip install brevo-python==5.0.1