Skip to content

Commit

Permalink
Fix #784
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Sep 16, 2024
1 parent b2b36af commit d59cb2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion karavan-core/src/core/api/CamelUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class CamelUtil {
if (property.type === 'string' && !property.isArray && (value === undefined || !value.trim())) {
result[0] = false;
result[1].push(`${property.displayName} is required`);
} else if (property.type === 'ExpressionDefinition') {
} else if (['ExpressionSubElementDefinition', 'ExpressionDefinition'].includes(property.type)) {
const expressionMeta = CamelMetadataApi.getCamelModelMetadataByClassName('ExpressionDefinition');
const expressionCheck = expressionMeta && value !== undefined && expressionMeta?.properties.some(ep => {
const expValue = value[ep.name];
Expand Down
17 changes: 4 additions & 13 deletions karavan-designer/public/example/demo.camel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,7 @@
steps:
- aggregate:
id: aggregate-bf73
- to:
id: to-7baa
uri: jms
parameters:
destinationName: test
- marshal:
id: marshal-136a
json:
id: json-4655
- unmarshal:
id: unmarshal-70d1
json:
id: json-ecfe
correlationExpression:
groovy:
id: groovy-ed69
expression: saasdsa

0 comments on commit d59cb2e

Please sign in to comment.