Skip to content

Support for more relaxed matching #809

@sazzer

Description

@sazzer

It's often useful to be able to compare the output of something with the previously generated result - e.g. taken from API specs.

However, currently Insta requires that the two are in the exact same format. That is, the fields in the same order, the same whitespace, etc.

It would be very useful if this could be relaxed so that the comparison is that the JSON is semantically the same, rather than being character-wise the same.

For example, the following are semantically the same but would fail on Insta:

{
    "a": 1,
    "b": [
        1,
        2
    ]
}
{
    "b": [1, 2],
    "a": 1
}

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions