Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSONPath selective validation to Comparator #5

Open
codemental opened this issue Jan 19, 2024 · 0 comments
Open

Add JSONPath selective validation to Comparator #5

codemental opened this issue Jan 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@codemental
Copy link
Member

codemental commented Jan 19, 2024

The Comparator must be extended to accept another validation options. This option is about configuring it to only validate specific JSONPaths.
Just like in the other ticket, the JSONPaths that we will be supporting first will cover these cases:

$.store.book[0].title - target a specific field.
$..author | $.store..price - target a field with the specified name, wherever it is under a specific parent.
$.store.* - target all fields under a specific parent. $..* falls into this category, but I am curious of what use-cases this could cover.

@codemental codemental changed the title JsonPath selective validation Add JSONPath selective validation to Comparator Jan 20, 2024
@codemental codemental added the enhancement New feature or request label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant