Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: draftable/compare-api-python-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
Loading
...
head repository: pablospe/compare-api-python-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Aug 12, 2025

  1. Fix JSON serialization of DeletionMark objects in Change.to_dict()

    The Change.to_dict() method was returning raw DeletionMark objects instead
    of calling their to_dict() method, causing 'TypeError: Object of type
    DeletionMark is not JSON serializable' when serializing changes.
    
    This fix ensures DeletionMark objects are properly converted to dictionaries
    before serialization, consistent with how other nested objects like Region
    and StylesInfo are handled.
    
    Changes:
    - Fix Change.to_dict() to call self.__deletionMark.to_dict() when present
    - Handle None and missing deletionMark cases properly
    - Add comprehensive test suite covering all serialization scenarios
    
    Fixes: JSON serialization errors when changes contain deletion marks
    pablospe committed Aug 12, 2025
    Configuration menu
    Copy the full SHA
    e963374 View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.