Skip to content

Feature request - extend 'match each' to work with 'contains deep' #2170

@anupamck

Description

@anupamck

Currently, match each doesn't work with contains deep.

Scenario:
    * def original = [ { a: 1, arr: [ { b: 2, c: 3 }, { b: 3, c: 4 } ] } ]
    * def expected = { a: 1, arr: [ { b: '#number', c: '#number' } ] }
    # This fails
    * match each original contains deep expected

This is in line with the documentation, given that there is a section for match contains deep, but no corresponding section for match each contains deep. However, I think this feature would be of great use, especially in performing schema validation for complex JSON arrays with the powerful flexibility of contains deep.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions