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

Dynamic value replacing of JsonPath filters #1127

Closed
atrujillofalcon opened this issue Aug 26, 2021 · 0 comments
Closed

Dynamic value replacing of JsonPath filters #1127

atrujillofalcon opened this issue Aug 26, 2021 · 0 comments
Labels

Comments

@atrujillofalcon
Copy link
Contributor

It would be quite useful to have available as input argument the value to replace with the JsonPathFilter.

Context and Possible Implementation

We need to salt with SHA256 the value instead of fixed replacing.

Logbook logbook = Logbook.builder()
                    .bodyFilter(jsonPath("$.cardNumber").replace(value -> sha256Function(value) ))
                    .build();
whiskeysierra pushed a commit that referenced this issue Sep 23, 2021
 #1155 ) (#1156)

* JsonPath dynamic value replacing implementation and testing

* JsonPath dynamic value replacing implementation and testing. Resolves #1127

* JsonPath dynamic value replacing implementation and testing (resolves #1155 )

* QueryFilter dynamic value replacing implementation and testing (resolves #1155 )

* Fix test name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant