Skip to content

Commit

Permalink
feat: Add support for key input in inputFns.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed Jun 20, 2024
1 parent c239f07 commit 8f9e162
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/include/inputFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ var _inputFns = new Map([
if (isDef(__pm._list)) _res = __pm._list
_$o(_res, options)
}],
["key", (_res, options) => {
_showTmpMsg()
if (!isString(_res)) _exit(-1, "key is only supported with a string.")
_$o($get(_res), options)
}],
["jsonschema", (_res, options) => {
_showTmpMsg()
var _s = jsonParse(_res, __, __, true)
Expand Down

0 comments on commit 8f9e162

Please sign in to comment.