We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df759b3 commit 2cbee5aCopy full SHA for 2cbee5a
airbyte-commons/src/main/java/io/airbyte/commons/json/JsonPaths.java
@@ -132,7 +132,7 @@ public static void assertIsJsonPath(final String jsonPath) {
132
* @param jsonPath - path to validate
133
*/
134
public static void assertIsSingleReturnQuery(final String jsonPath) {
135
- Preconditions.checkArgument(!jsonPath.contains("*"), "Cannot accept paths with wildcards because they may return more than one item.");
+ Preconditions.checkArgument(JsonPath.isPathDefinite(jsonPath), "Cannot accept paths with wildcards because they may return more than one item.");
136
}
137
138
/**
0 commit comments