Skip to content

Regex pattern for ignore_keys in JSON comparison is not always effective #52

@ChingT

Description

@ChingT

I've configured a file with the following settings:

rules:
  - name: "Compare JSON files"
    pattern_include:
      - "**/*.json"
    Json:
      ignore_keys:
        - "^[a-zA-Z]+Id$"

Despite this configuration, the comparison results still show keys like xxxId, which should have been ignored based on the specified regex pattern. However, some keys containing Id do get ignored.

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