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

fix: use the del() function to ignore a given path #467

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

aereal
Copy link
Contributor

@aereal aereal commented Jan 15, 2025

The lambroll uses WithUpdate() function to ignore the specified JSON path that going to be removed in the future for bad design.

This pull request changes Deploy() method to build gojq query manually instead of calling WithUpdate().

If you pass the option such as -ignore .name, you got the query like .name = null, but now you will get the query like del(.name).

@fujiwara fujiwara merged commit 7b3a3cc into fujiwara:v1 Jan 23, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants