Skip to content

Commit

Permalink
incorporating review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TalmizAhmed authored and ci-build committed Sep 23, 2024
1 parent c46ad17 commit c6aa36c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class AbstractFormComponentImpl extends AbstractComponentImpl implements
// mandatory property else adapt should fail for adaptive form components
@ValueMapValue(injectionStrategy = InjectionStrategy.OPTIONAL, name = ReservedProperties.PN_FIELDTYPE)
protected String fieldTypeJcr;
protected FieldType fieldType;
private FieldType fieldType;

@ValueMapValue(injectionStrategy = InjectionStrategy.OPTIONAL, name = ReservedProperties.PN_NAME)
@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,5 @@ void testGetProperties() {
void testNoFieldType() {
Button button = Utils.getComponentUnderTest(PATH_BUTTON_NO_FIELDTYPE, Button.class, context);
assertEquals(FieldType.BUTTON.getValue(), button.getFieldType());
Utils.testJSONExport(button, Utils.getTestExporterJSONPath(BASE, PATH_BUTTON_NO_FIELDTYPE));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,7 @@
"rules",
"screenReaderText",
"tooltip",
"visible",
"type",
"buttonType"
"visible"
],
"errorMessage": {
"enum": "${0} property is not allowed in Button"
Expand Down

0 comments on commit c6aa36c

Please sign in to comment.