Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Examine Equals methods and add tests #161

Description

@shaopeng-gh

Follow up on PR:

  • FEATURE: Add new option for specifying .NET type to express Json integers: --generate-json-integer-as = int | long | biginteger | auto with a default of int. #158
    public bool Equals(JsonSchema other)

Check is there a bug in this method due to failure to account for Minimum or ExclusiveMinimum,
If so, let's please do add some advanced tests (not hard-coded by member name) to find/fix this bug.
The reflection-based tests should trigger anytime we add a new property/member to this class without properly updating the object copying ctor/Equals methods.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions