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

delete callback #347

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

delete callback #347

wants to merge 1 commit into from

Conversation

EItanya
Copy link
Member

@EItanya EItanya commented Jun 13, 2024

No description provided.

@@ -492,6 +495,13 @@ json TransformerInstance::base64url_decode_callback(const inja::Arguments &args)
return Base64Url::decode(input);
}

json TransformerInstance::deletekey_callback(const inja::Arguments &args) {
auto json_input = args.at(0)->get<json::object_t>();
const std::string & json_key = args.at(1)->get_ref<const std::string &>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have advanced_templates set we will need to make a json pointer from the arg https://json.nlohmann.me/features/json_pointer/#introduction

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