Skip to content

Commit

Permalink
feat: add a feature flag for new field validation behavior (#14285)
Browse files Browse the repository at this point in the history
This PR adds a feature flag for the new field validation behavior. The flag will be used by Flow field components. For more information about the new behavior, please refer to vaadin/platform#3066.

Part of vaadin/platform#3066
  • Loading branch information
vursen authored Aug 9, 2022
1 parent 1bf5831 commit d2d50b6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public class FeatureFlags implements Serializable {
"Collaboration Engine backend for clustering support",
"collaborationEngineBackend",
"https://github.com/vaadin/platform/issues/1988", true, null);
public static final Feature ENFORCE_FIELD_VALIDATION = new Feature(
"Enforce client / constraint / binder validation",
"enforceFieldValidation",
"https://github.com/vaadin/platform/issues/3066", false, null);
private List<Feature> features = new ArrayList<>();

File propertiesFolder = null;
Expand All @@ -98,6 +102,7 @@ public FeatureFlags(Lookup lookup) {
features.add(new Feature(OFFLINE_LICENSE_CHECKER));
features.add(new Feature(COLLABORATION_ENGINE_BACKEND));
features.add(new Feature(WEBPACK));
features.add(new Feature(ENFORCE_FIELD_VALIDATION));
loadProperties();
}

Expand Down

0 comments on commit d2d50b6

Please sign in to comment.