From 3d0591fcb0614eba653fad94211a27e08efe7227 Mon Sep 17 00:00:00 2001 From: acrusage <139230478+acrusage-iaik@users.noreply.github.com> Date: Thu, 17 Jul 2025 14:22:41 +0200 Subject: [PATCH 1/6] Fix: Publishing endpoints from @JesusMcCloud --- build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c9b16f8..6f08a4b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,9 +14,9 @@ repositories { nexusPublishing { nexusPublishing { repositories { - sonatype { //only for users registered in Sonatype after 24 Feb 2021 - nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) - snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) + sonatype { + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) } } } From e609018b368b04b53d511e1be87d22837b524fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20Pr=C3=BCnster?= Date: Mon, 1 Sep 2025 20:06:27 +0200 Subject: [PATCH 2/6] Update shield --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1f15aec..1480e3e 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,17 @@ # ![JsonPath4K](jsonpath4k.png) - - - -[![A-SIT Plus Official](https://img.shields.io/badge/A--SIT_Plus-official-005b79?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDMuNzYyODYgMTg0LjgxOTk5Ij48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiIGNsaXBQYXRoVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNMCA1OTUuMjhoODQxLjg5VjBIMFoiLz48L2NsaXB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MCAwIDAgMTEuOTUtMTQuNTdjMS42Mi0zLjI2IDMuNzctMTAuMDQgMy43Ny0xNC42OCAwLS4zOC0uMTctLjc0LS41NC0uODJsLTE2Ljg5LS40Yy0uMi0uMDQtLjM0LjM0LS4zNC41NCAwIC4yNy0uMDMuNC0uMDYuNi0uNSAyLjgyLTEuMzggNS40LTIuNjEgNy42OWEyOC41MyAyOC41MyAwIDAgMS04LjI0IDkuNTggMzUuMDEgMzUuMDEgMCAwIDEtMTEuOTYgNS41NyA1NS4yNSA1NS4yNSAwIDAgMS0xMi41NyAxLjc3Yy00LjMyLS4xLTguNjEtLjcxLTEyLjc1LTEuOGEzNS4wNSAzNS4wNSAwIDAgMS0xMS45Ni01LjU3IDI4LjUyIDI4LjUyIDAgMCAxLTguMjMtOS41OGMtMS44Ni0zLjQ0LTIuOS03LjU1LTMuMDktMTIuMmwtLjAxLTcuNDdoODkuMTZhLjcuNyAwIDAgMCAuNy0uNzJ2LTM5LjVjLS4xLTcuNjUtMS41OC0xNC40LTQuMzgtMjAuMDZhNDAuNCA0MC40IDAgMCAwLTExLjk1LTE0LjU2IDUyLjM3IDUyLjM3IDAgMCAwLTE3LjQ4LTguNDcgNzcuNTYgNzcuNTYgMCAwIDAtMjAuMDEtMi43N1oiLz48cGF0aCBmaWxsPSIjY2U0OTJlIiBkPSJNNDE5LjM4IDI4MC42M2gtNy41N2EuNy43IDAgMCAwLS43MS43MXYxNS40MmE4LjE3IDguMTcgMCAwIDAtMy43OCA2LjkgOC4yOCA4LjI4IDAgMCAwIDE2LjU0IDAgOC4yOSA4LjI5IDAgMCAwLTMuNzYtNi45di0xNS40MmEuNy43IDAgMCAwLS43Mi0uNzEiLz48L2c%2BPC9zdmc%2B&logoColor=white&labelColor=white)](https://a-sit-plus.github.io) +[![A-SIT Plus Official](https://raw.githubusercontent.com/a-sit-plus/a-sit-plus.github.io/709e802b3e00cb57916cbb254ca5e1a5756ad2a8/A-SIT%20Plus_%20official_opt.svg)]([https://a-sit-plus.github.io](https://plus.a-sit.at/open-source.html)) [![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-brightgreen.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![Kotlin](https://img.shields.io/badge/kotlin-multiplatform-orange.svg?logo=kotlin)](http://kotlinlang.org) [![Kotlin](https://img.shields.io/badge/kotlin-2.0.20-blue.svg?logo=kotlin)](http://kotlinlang.org) [![Java](https://img.shields.io/badge/java-17+-blue.svg?logo=OPENJDK)](https://www.oracle.com/java/technologies/downloads/#java17) [![Maven Central](https://img.shields.io/maven-central/v/at.asitplus/jsonpath4k)](https://mvnrepository.com/artifact/at.asitplus/jsonpath4k/) + + + + This is a Kotlin Multiplatform Library for using Json Paths as specified in [RFC9535](https://datatracker.ietf.org/doc/rfc9535). ## Architecture From c42bce0ea502c55e7e85bb694c76e1f1f5e5aa9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20Pr=C3=BCnster?= Date: Mon, 1 Sep 2025 20:10:29 +0200 Subject: [PATCH 3/6] Update shield --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1480e3e..6496b14 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # ![JsonPath4K](jsonpath4k.png) -[![A-SIT Plus Official](https://raw.githubusercontent.com/a-sit-plus/a-sit-plus.github.io/709e802b3e00cb57916cbb254ca5e1a5756ad2a8/A-SIT%20Plus_%20official_opt.svg)]([https://a-sit-plus.github.io](https://plus.a-sit.at/open-source.html)) +[![A-SIT Plus Official](https://raw.githubusercontent.com/a-sit-plus/a-sit-plus.github.io/709e802b3e00cb57916cbb254ca5e1a5756ad2a8/A-SIT%20Plus_%20official_opt.svg)](https://plus.a-sit.at/open-source.html) [![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-brightgreen.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![Kotlin](https://img.shields.io/badge/kotlin-multiplatform-orange.svg?logo=kotlin)](http://kotlinlang.org) [![Kotlin](https://img.shields.io/badge/kotlin-2.0.20-blue.svg?logo=kotlin)](http://kotlinlang.org) From e2ea8fa4a7c2e5b83dc474a8a57bdfa163105229 Mon Sep 17 00:00:00 2001 From: Jakub Duchateau Date: Tue, 27 Jan 2026 11:33:18 +0100 Subject: [PATCH 4/6] Ensure the parser consumed the full JsonPath --- jsonpath4k/src/commonMain/antlr/JsonPathParser.g4 | 2 +- .../kotlin/at/asitplus/jsonpath/JsonPathUnitTest.kt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/jsonpath4k/src/commonMain/antlr/JsonPathParser.g4 b/jsonpath4k/src/commonMain/antlr/JsonPathParser.g4 index a4b6a33..837f88e 100644 --- a/jsonpath4k/src/commonMain/antlr/JsonPathParser.g4 +++ b/jsonpath4k/src/commonMain/antlr/JsonPathParser.g4 @@ -5,7 +5,7 @@ parser grammar JsonPathParser; options { tokenVocab=JsonPathLexer; } -jsonpath_query : rootIdentifier segments; +jsonpath_query : rootIdentifier segments EOF; segments : (ws segment)*; segment : bracketed_selection | SHORTHAND_SELECTOR shorthand_segment | DESCENDANT_SELECTOR descendant_segment; shorthand_segment : wildcardSelector | memberNameShorthand; diff --git a/jsonpath4k/src/commonTest/kotlin/at/asitplus/jsonpath/JsonPathUnitTest.kt b/jsonpath4k/src/commonTest/kotlin/at/asitplus/jsonpath/JsonPathUnitTest.kt index 4140f51..198712c 100644 --- a/jsonpath4k/src/commonTest/kotlin/at/asitplus/jsonpath/JsonPathUnitTest.kt +++ b/jsonpath4k/src/commonTest/kotlin/at/asitplus/jsonpath/JsonPathUnitTest.kt @@ -2,6 +2,7 @@ package at.asitplus.jsonpath import at.asitplus.jsonpath.core.JsonPathFilterExpressionType import at.asitplus.jsonpath.core.JsonPathFunctionExtension +import at.asitplus.jsonpath.implementation.JsonPathParserException import at.asitplus.jsonpath.implementation.JsonPathTypeCheckerException import io.kotest.assertions.throwables.shouldNotThrowAny import io.kotest.assertions.throwables.shouldThrow @@ -1244,5 +1245,13 @@ class JsonPathUnitTest : FreeSpec({ } } } + + "RMLTC0002g-JSON" - { + "$.students[*]]" { + shouldThrow { + JsonPath(this.testScope.testCase.name.originalName) + } + } + } } }) From 0a83dd92e732aa0bcd3d87f593674bf12c13a58a Mon Sep 17 00:00:00 2001 From: acrusage <139230478+acrusage-iaik@users.noreply.github.com> Date: Wed, 28 Jan 2026 15:23:51 +0100 Subject: [PATCH 5/6] Add: Changelog entry to come --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27d85db..e17c5c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# Release 3.0.1 + * Fix: Validates whether the whole string has been consumed + # Release 3.0.0 * BREAKING CHANGES: * Removed template type from `JsonPathFunctionExtension` From b701f461c9819550354712892a96c3ecc27711c5 Mon Sep 17 00:00:00 2001 From: acrusage <139230478+acrusage-iaik@users.noreply.github.com> Date: Wed, 28 Jan 2026 15:28:14 +0100 Subject: [PATCH 6/6] Bump: Version --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index e063653..063bb39 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,7 +16,7 @@ kotlin.native.ignoreDisabledTargets=true # workaround dokka bug (need to wait for next snapshot build) org.jetbrains.dokka.classpath.excludePlatformDependencyFiles=true -artifactVersion = 3.0.0 +artifactVersion = 3.0.1 jdk.version=17 android.experimental.lint.version=8.5.0