jmespath / jmespath/jmespath.site

max_by/min_by specification disagrees with the examples

Open
#81 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
61
Forks
61
PR merge metrics
No merged PRs in 30d

Description

The max_by and min_by specification declares that the 2nd argument is an expression that returns either a number or a string.

`expression->number|expression->string`

However, they both have an example that specifically contradicts this showing that strings are not allowed. Which is it?

|Expression | Result|
|-- | --|
|max_by(people, &age_str) | |
|min_by(people, &age_str) | |

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.