Skip to content

Commit

Permalink
fix(generator): FEEL mode = disabled not applied in some cases (#2286)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Apr 2, 2024
1 parent 552d13b commit 8d92aa3
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"message" : "can only contain letters, numbers, or single underscores/hyphens and cannot begin or end with an underscore/hyphen"
}
},
"feel" : "optional",
"group" : "endpoint",
"binding" : {
"name" : "inbound.context",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"message" : "can only contain letters, numbers, or single underscores/hyphens and cannot begin or end with an underscore/hyphen"
}
},
"feel" : "optional",
"group" : "endpoint",
"binding" : {
"name" : "inbound.context",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"message" : "can only contain letters, numbers, or single underscores/hyphens and cannot begin or end with an underscore/hyphen"
}
},
"feel" : "optional",
"group" : "endpoint",
"binding" : {
"name" : "inbound.context",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"message" : "can only contain letters, numbers, or single underscores/hyphens and cannot begin or end with an underscore/hyphen"
}
},
"feel" : "optional",
"group" : "endpoint",
"binding" : {
"name" : "inbound.context",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.camunda.connector.generator.java.processor;

import io.camunda.connector.generator.dsl.DropdownProperty.DropdownPropertyBuilder;
import io.camunda.connector.generator.dsl.Property.FeelMode;
import io.camunda.connector.generator.dsl.PropertyBuilder;
import io.camunda.connector.generator.dsl.PropertyCondition;
import io.camunda.connector.generator.dsl.PropertyConstraints;
Expand All @@ -35,7 +34,7 @@ public void process(Field field, PropertyBuilder builder) {
return;
}
builder.optional(annotation.optional());
if (annotation.feel() != FeelMode.disabled && !(builder instanceof DropdownPropertyBuilder)) {
if (!(builder instanceof DropdownPropertyBuilder)) {
builder.feel(annotation.feel());
}
if (!annotation.label().isBlank()) {
Expand Down

0 comments on commit 8d92aa3

Please sign in to comment.