Skip to content

Commit 2e839b1

Browse files
committed
Add license header to BodyDoesntThrowIOExceptionTest and update JSONPath usage in orchestration examples
1 parent 1b57845 commit 2e839b1

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

core/src/test/java/com/predic8/membrane/core/interceptor/BodyDoesntThrowIOExceptionTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/* Copyright 2026 predic8 GmbH, www.predic8.com
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License. */
14+
115
package com.predic8.membrane.core.interceptor;
216

317
import com.predic8.membrane.core.http.AbstractBody;

distribution/examples/orchestration/for-loop/apis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ api:
1919
property.result = property.result ?: []
2020
property.result.add(
2121
[ "name": property.it.name,
22-
"price": jsonPath('$.price')
22+
"price": fn.jsonPath('$.price')
2323
])
2424
# Render a simplified JSON response with only product name and price
2525
- template:

distribution/tutorials/orchestration/50-Loop-get-Details.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ api:
3434
property.res = property.res ?: []
3535
property.res.add(
3636
[ "name": it['name'],
37-
"price": jsonPath('$.price')
37+
"price": fn.jsonPath('$.price')
3838
])
3939
# Render the aggregated result as JSON
4040
- template:

0 commit comments

Comments
 (0)