hurl icon indicating copy to clipboard operation
hurl copied to clipboard

Support jsonpath functions

Open lu-zero opened this issue 10 months ago • 4 comments

Problem to solve

Sometimes would be useful to select the max(),min() or even produce a sum() over a returned array and potentially also capture it.

Proposal

Implement the jsonpath functions min(), max() and potentially also the ones described in the rfc.

Additional context and resources

The jsonpath rfc lists the following functions:

Tasks to complete

  • [ ] Add the machinery to support functions
  • [ ] Implement a fixed set of functions
  • [ ] Allow defining additional functions in Options

lu-zero avatar Mar 31 '25 10:03 lu-zero

Thanks @lu-zero for your issue. We should indeed implement the full RFC.

fabricereix avatar Mar 31 '25 14:03 fabricereix

Ran into this requirement today, would be great to see these implemented, ty!

techfg avatar Apr 17 '25 04:04 techfg

Is this a feature that we could discuss further to get it into open-to-contribution?

tjbrockmeyer avatar Jul 23 '25 07:07 tjbrockmeyer

Hi @tjbrockmeyer for first time contributors, we prefer that they pick one of open to contribution if possible!

Issues that are not marked as "open to contributions" are generally identified by us more "complex" or needs some refactoring/ decisions. Sometimes we also have not decided yet f we're going to implement them. Issues "open to contribution" are, generally, simpler and we're sure to want it.

jcamiel avatar Jul 23 '25 15:07 jcamiel