`<=`, `>=` and `>` give wrong results for missing values and for booleans
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
Rechercherichtung
Start by reading the comparison handling for <=, >=, and > and the tests for JSONPath filters; the issue does not name file paths, so locate those entry points in the Go repository. Check the missing-value and boolean cases against the RFC and jsonpath-rfc9535 results described here. Done means the two examples return [{}] and [] respectively, with regression tests covering both.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Two comparison cases come out wrong:
$[[email protected] <= @.b]on[{}]returns[]. Both sides are missing, and missing equals missing, so<=should hold and
it should return[{}].>=has the same problem.$[?true > false]on[1]returns[1]. Booleans aren't ordered by<, andtrueisn't equal tofalse, so>
should be false and it should return[].
The RFC defines <= as "less-than or equal", with < defined only for two numbers or two strings, and equality of two
missing values being true. jsonpath-rfc9535 gives the expected results on both.
- Vorherrschende Sprache
- Go
- Sterne
- 41
- Forks
- 4
- Ø Merge
- 2 T. 8 Std.
- Gemergte PRs (30 T.)
- 3
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus theory/jsonpath
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
Alle Issues in theory/jsonpath
Ähnliche Issues
-
agent/strategist help wanted roadmap
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
kubestellar/kubestellar-mcp#1414 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: pipeline priority: low type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
area: widgets type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
itadori26/trisse-home#905 ·
-
[Bug]: Packer activity unjoined-runtime test is flaky on LinuxEvtl. vergeben @depohmel hat das heute übernommen. Offenbug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
dsx-ai-factory/nvkr#707 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
nightgauge/nightgauge#3872 ·
Maintainer antworten meist innerhalb von 1 Tag