-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhanced set_json_key function to be able to take multiple keys
- Loading branch information
1 parent
2fb2483
commit 044a174
Showing
2 changed files
with
26 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -822,28 +822,28 @@ actions: | |
example: "{'key2': 'value2'}" | ||
schema: | ||
type: string | ||
- name: set_json_key | ||
- name: set_json_keys | ||
description: Adds a JSON key to an existing object | ||
parameters: | ||
- name: json_object | ||
description: The object to edit | ||
multiline: true | ||
example: '{"sender": "[email protected]"}' | ||
example: '{"user": {"name": "John", "age": 25, "city": "New York"}}' | ||
required: true | ||
schema: | ||
type: string | ||
- name: key | ||
- name: keys_string | ||
description: The object to add | ||
multiline: false | ||
example: "recipients" | ||
multiline: true | ||
example: "user.address.city , user.name" | ||
required: true | ||
schema: | ||
type: string | ||
- name: value | ||
description: The value to set it to in the JSON object | ||
- name: values_string | ||
description: The values to set it to in the JSON object | ||
multiline: true | ||
required: true | ||
example: "[email protected]" | ||
example: "value1 , value2" | ||
schema: | ||
type: string | ||
- name: delete_json_keys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters