Skip to content

Improve AdditionalProperties equality comparison in model classes #127

@coderabbitai

Description

@coderabbitai

Context

This issue tracks the AdditionalProperties equality comparison improvement identified in PR #122.

Description

The equality logic for AdditionalProperties in model classes has been updated to properly compare both keys and values. Previously, the implementation only verified key presence using Except, which could incorrectly consider objects equal even when values differed.

The new implementation uses All with ContainsKey and value equality checks to ensure both keys and values match.

Impact

This is a breaking change applied consistently across multiple model classes—objects that were previously considered equal (same keys, different values) will no longer be equal after this change.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    Status

    Intake

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions