File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
core/src/test/java/com/predic8/membrane/core/interceptor
examples/orchestration/for-loop Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 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+
115package com .predic8 .membrane .core .interceptor ;
216
317import com .predic8 .membrane .core .http .AbstractBody ;
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments